package com.zxl.jdk8test;

public class MyTest {
    
    public static void main(String[] args) {
        //任意接口的方法都可以使用lambda表达式实现
        testMethod(s -> {System.out.println(s);});
    }
    
    public static void testMethod(MyInterface interface1){
        interface1.test("1231231");
    }
}
